GdkWaylandWindow: Allow calling export() multiple time
authorJonas Ådahl <jadahl@gmail.com>
Mon, 8 May 2017 10:35:50 +0000 (18:35 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Tue, 23 May 2017 01:39:29 +0000 (09:39 +0800)
commitdba57db1f3a9c1568d7a3c9ae479491dcfcee152
tree3d1a8fec388e4772a26144a2b6b28ab7d758628b
parent8cf774d668da5983fa66c9b40b57e235e7e30208
GdkWaylandWindow: Allow calling export() multiple time

Allow getting the same export handle multiple times by calling
gdk_wayland_window_export_handle() multiple times. For each time
export() is called, a unexport() must be called to unexport.

When the window is already exported, the exported callback is called
via a idle handler. If there are multiple export() calls, they are
invoked in order either when the handle is received by the display
server, or when the idle callback is invoked.

Calling unexport() will not affect future invokations of the exported
callback, unless all export() calls have their unexport() call count
matched.

https://bugzilla.gnome.org/show_bug.cgi?id=782325
gdk/wayland/gdkwindow-wayland.c